package com.hly.musicbackground.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hly.musicbackground.domain.SongSheet;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface SongSheetDao extends BaseMapper<SongSheet> {

    @Update("update song_sheet set song_num = song_num + #{num} where song_sheet_id = #{id}")
    int addSongNum(int id, int num);

}
